package com.xiaohui.user.designPattern.filter;

/**
 * @Author: xiaohui
 * @Description: 文字计数过滤器
 */
public class WordCountFilter extends BaseArticleFilter{
    @Override
    public boolean doFilter(ArticleContext articleContext) {
        Article article = articleContext.getArticle();
        Long count = article.getWordCount();
        if (count > 100){
            sendMessage();
        }
        return false;
    }
}
